package com.example.librarymanagementsystembackend.systemicfunctions.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.math.BigDecimal;

public class SystemSettingsEntity {
    //管理员<-
    @JsonProperty("borrowLimit")
    private Integer borrowLimit; //借书限额

    @JsonProperty("borrowPeriod")
    private Integer borrowPeriod;  //借书期限（天）

    @JsonProperty("dailyOverdueFine")
    private BigDecimal dailyOverdueFine;  //每日逾期后的具体的罚金

    public Integer getBorrowLimit() {
        return borrowLimit;
    }

    public void setBorrowLimit(Integer borrowLimit) {
        this.borrowLimit = borrowLimit;
    }

    public Integer getBorrowPeriod() {
        return borrowPeriod;
    }

    public void setBorrowPeriod(Integer borrowPeriod) {
        this.borrowPeriod = borrowPeriod;
    }

    public BigDecimal getDailyOverdueFine() {
        return dailyOverdueFine;
    }

    public void setDailyOverdueFine(BigDecimal dailyOverdueFine) {
        this.dailyOverdueFine = dailyOverdueFine;
    }

    @Override
    public String toString() {
        return "SystemSettingsEntity{" +
                "borrowLimit=" + borrowLimit +
                ", borrowPeriod=" + borrowPeriod +
                ", dailyOverdueFine=" + dailyOverdueFine +
                '}';
    }
}
